package com.brradish.dockertest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@SpringBootApplication
@Configuration
public class DockerTestApplication {
	Logger logger = LoggerFactory.getLogger(DockerTestApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(DockerTestApplication.class, args);
	}

	@RequestMapping(value = "hello")
	@ResponseBody
	public String hello() {
		logger.trace("hello world");
		return "hello spring boot";

	}

}
